Skip to content

Conversation

@overcut-ai
Copy link

@overcut-ai overcut-ai bot commented Jan 9, 2026

Summary

  • add a comprehensive AGENTS guide that explains the ecommerce/logistics services and shared technologies
  • enumerate repository structure, development guidelines, quality standards, and task playbooks for agents
  • document reference examples and critical rules so automated agents can work consistently

Why

Keeping AGENTS.md current ensures agents understand the architecture, workflows, and expectations before making automated changes, which improves reliability and consistency.

Summary

This PR adds a comprehensive AGENTS.md to guide automated contributors across the sample-app monorepo. The document explains the ecommerce/logistics services, repository structure, development workflows, and critical rules so agents can operate consistently and accurately.

Changes

  • Documentation: Added AGENTS.md covering the project overview, repository layout, naming conventions, development guidelines, cross-service code patterns, quality standards, critical rules, and step-by-step task playbooks for each service.

Commits

Testing

  • Review AGENTS.md for accuracy against existing README guidance
  • Ensure documented scripts and environment variables match the service READMEs
  • Confirm the Markdown renders correctly in viewers and highlights all referenced resources

- add comprehensive agent handbook covering overview, structure, and workflows

- document critical rules, playbooks, and references for all services
@overcut-ai
Copy link
Author

overcut-ai bot commented Jan 9, 2026

Completed Working on "Auto PR Description"

✅ Workflow completed successfully.


👉 View complete log

@overcut-ai
Copy link
Author

overcut-ai bot commented Jan 9, 2026

Completed Working on "Code Review"

✅ Workflow completed successfully.


👉 View complete log

Copy link
Author

@overcut-ai overcut-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary:

  • Findings: 0 BLOCKER / 0 CRITICAL / 2 MAJOR / 0 MINOR / 0 SUGGESTION / 0 PRAISE.

Key themes:

  1. AGENTS.md overstates the availability of docker/prisma/db flows in ecommerce-admin, so the guide no longer matches the package.json reality.
  2. Frontend testing instructions cite React Testing Library even though the necessary dependencies and npm scripts are absent.

Next steps:

  • Either scope those scripts to the NestJS services in AGENTS.md or add equivalent scripts/documentation to ecommerce-admin.
  • Add the React Testing Library dependencies and test script to ecommerce-admin (or update the guide to explain that frontend tests are not configured yet).

## ⚙️ Development Guidelines
- **Environment setup:** Follow each service README to copy `.env` files and adjust ports, database URLs, and JWT secrets. Admin UI expects `PORT` (default `3001`) and `REACT_APP_SERVER_URL`; servers require DB credentials, `BCRYPT_SALT`, and JWT settings.
- **Prerequisites:** Ensure Node.js ≥16, npm, and Docker are installed before running scripts. Kafka/MySQL/PostgreSQL containers are provisioned via the provided `docker-compose` files.
- **Scripts:** Every service documents the standard flow—`npm install`, `npm run prisma:generate` (servers), `npm run docker:dev`, `npm run db:init`, and `npm run start`. Containerized runs use `npm run compose:up` / `compose:down`.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[major]: AGENTS.md L40-L44
@@

  • Scripts: Every service documents the standard flow—npm install, npm run prisma:generate (servers), npm run docker:dev, npm run db:init, and npm run start. Containerized runs use npm run compose:up / compose:down.
    @@
    apps/ecommerce-admin/package.json L15-L19
    @@
    "scripts": {
    "start": "vite",
    "build": "vite build",
    "serve": "vite preview",
    @@
    The admin client exposes only the Vite dev/build scripts shown above—there are no prisma:*, docker:dev, db:init, or compose:* commands—so the guide over-promises what "every service" offers. Please either clarify that only the NestJS servers expose those flows or add equivalent scripts/documentation for ecommerce-admin.

Suggested fix: Clarify that the docker/prisma/db flows apply only to the NestJS services or add the missing scripts to apps/ecommerce-admin.

- `auth-provider/` implements login/logout/token refresh while `data-provider/` wraps `ra-data-graphql-amplication` for GraphQL calls typed via `src/types.ts`.
- `src/util/` mirrors backend filter DTOs so list pages can build GraphQL query arguments without re-defining shapes.
- Styling lives in `App.scss`, `theme/`, and resource-specific Sass modules; Vite handles bundling with `vite.config.ts`.
- Testing hooks follow the CRA-to-Vite migration defaults (`setupTests.ts`, React Testing Library) while lint/format scripts enforce Prettier + ESLint baselines.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[major]: AGENTS.md L58-L62
@@

  • Styling lives in App.scss, theme/, and resource-specific Sass modules; Vite handles bundling with vite.config.ts.
  • Testing hooks follow the CRA-to-Vite migration defaults (setupTests.ts, React Testing Library) while lint/format scripts enforce Prettier + ESLint baselines.
    @@
    apps/ecommerce-admin/package.json L5-L12
    @@
    "dependencies": {
    "@apollo/client": "3.6.9",
    "graphql": "15.6.1",
    @@
    apps/ecommerce-admin/package.json L16-L19
    @@
    "scripts": {
    "start": "vite",
    "build": "vite build",
    "serve": "vite preview",
    @@
    The guide tells agents to rely on React Testing Library, yet the admin package declares no @testing-library/* dependencies and even lacks an npm test script, so those instructions cannot be executed. Please add the missing dependencies/scripts or explain that frontend tests are not currently wired up.

Suggested fix: Add the React Testing Library packages plus an npm test script (or update AGENTS.md to state that frontend tests are not available).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants